#include "model/cube.h"

Cube::Cube(float size) {
    createCubeMesh(mesh, size);
    mesh.update_buffer();
}

void Cube::render(glm::mat4 viewMat, glm::mat4 projMat) {
    auto modelMat = getTransMat();
    _shader.render(mesh, modelMat, viewMat, projMat);
}